package com.fr.report.script;

import com.fr.base.ColumnRow;
import com.fr.data.util.function.CurrentContextDataSetFunction;
import com.fr.report.script.core.parser.DatasetFunctionCall;

public class CurrentContextTableDataNameSpace
  implements NameSpace
{
  public static final CurrentContextTableDataNameSpace SC = new CurrentContextTableDataNameSpace();

  public static CurrentContextTableDataNameSpace getInstance()
  {
    return SC;
  }

  public Object getCellElementAttribute(ColumnRow paramColumnRow, Object paramObject, Calculator paramCalculator)
  {
    return null;
  }

  public Function getMethod(Object paramObject, Calculator paramCalculator)
  {
    return null;
  }

  public Object getVariable(Object paramObject, Calculator paramCalculator)
  {
    if (paramObject instanceof DatasetFunctionCall)
      return CurrentContextDataSetFunction.getInstance().resolveDatasetFunction((DatasetFunctionCall)paramObject);
    return null;
  }
}